'''
Company: TWL
Author: xue jian
Email: xuejian@kanzhun.com
Date: 2020-10-28 09:22:59
'''
#
# @lc app=leetcode.cn id=1207 lang=python3
#
# [1207] 独一无二的出现次数
#

# @lc code=start
class Solution:
    def uniqueOccurrences(self, arr: List[int]) -> bool:
        import collections
        store = collections.defaultdict(lambda:0)
        for a in arr:
            store[a] += 1
        s = set([v for _, v in store.items()])
        return len(s) == len(store)
        
# @lc code=end

